package cn.edu.zut.score.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.edu.zut.score.core.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author zby
 * @since 2021-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("grade")
@ApiModel("Grade对象")
public class Grade extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分数ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "答辩ID")
    @TableField("reply_id")
    private Long replyId;

    @ApiModelProperty(value = "被评分学生ID")
    @TableField("student_id")
    private Long studentId;

    @ApiModelProperty(value = "评分人ID 0为匿名打分")
    @TableField("mark_id")
    private Long markId;

    @ApiModelProperty(value = "分数")
    @TableField("score")
    private Integer score;


}
